﻿
namespace Repository.EntityFramework.Forums
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Post")]
    public partial class Post
    {
        [StringLength(32)]
        public string Id { get; set; }

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Sequence { get; set; }

        [Required]
        [StringLength(256)]
        public string Subject { get; set; }

        [Column(TypeName = "ntext")]
        [Required]
        public string Body { get; set; }

        [Required]
        [StringLength(32)]
        public string AuthorId { get; set; }



        [Required]
        [StringLength(32)]
        public string SectionId { get; set; }

        public DateTime CreatedOn { get; set; }

        public DateTime UpdatedOn { get; set; }

        [StringLength(32)]
        public string MostRecentReplyId { get; set; }

        [StringLength(32)]
        public string MostRecentReplierId { get; set; }

        public int ReplyCount { get; set; }

        public DateTime LastUpdateTime { get; set; }

        public int Version { get; set; }
    }
}
